<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<body>
	<f:view>
		<ui:composition template="template/template.xhtml">
			<ui:define name="titel">
				Kontakt
			</ui:define>
			<ui:define name="content">
				<h:form id="mainForm">
					<p:growl id="growl" showDetail="true" life="3000" />
					<p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>  
	              
					<p:dialog id="status" modal="true" widgetVar="statusDialog" showHeader="false"   
		        		draggable="false" closable="false" style="background: transparent; box-shadow: none;">  
		    			<p:graphicImage value="img/ajax-loader.gif" />  
					</p:dialog>  
	
					<h:form>
						<h:panelGrid id="kontaktDaten" columns="4" cellpadding="10">
						
							<h:outputLabel for="name" value="Name:" />
							<p:inputText id="name" value="#{kontaktBean.name}" />
						
							<h:outputLabel for="vorname" value="Vorname:" />
							<p:inputText id="vorname" value="#{kontaktBean.vorname}" />
						
							<h:outputLabel for="email" value="E-Mail:" />
							<p:inputText id="email" value="#{kontaktBean.email}" size="30" />
						
						</h:panelGrid>
						<br />
						
						<p:inputTextarea id="kontaktText" value="#{kontaktBean.eingabe}" 
							style="width: 715px; height: 300px;" />
						<br /><br />
						<p:commandButton id="submitButton" value="Abschicken" ajax="false" update=":mainForm:growl :status"
						 	actionListener="#{kontaktController.kontaktAbschicken()}" onstart="statusDialog.show();" oncomplete="statusDialog.hide();"/>
						<br /><br />
						<h:outputLink value="#{request.contextPath}/impressum">
							<h:outputText value="Impressum" style="font-size:11px; text-decoration:none" />
						</h:outputLink>
					</h:form>
				</h:form>
			</ui:define>
		</ui:composition>
	</f:view>
</body>
</html>